package com.linchuansi.train;
public class ArrayDemo<T> {
    public  Object[] array={};
    public ArrayDemo(int size) {
        this.size = size;
        array=new Object[size];
    }
    private int size;
    public Integer size(){
        return size;
    }
    public void add(T t){
    }
    public T get(int index){
        return (T) array[index];
    }
    public void remove(int index){
    }
    public void clear(){
    }
    public boolean isEmpty(){
        return size==0;
    }
}